﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PHRClient.PatientForms
{
    public partial class History4 : Form
    {
        public History4()
        {
            InitializeComponent();
           
            checkBox1.Checked = true;
            checkBox3.Checked = true;

            this.TopLevel = false;
            this.AutoScroll = true;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Dock = DockStyle.Fill;
            comboBox1.SelectedItem = "12/08/2014-visit3";
           
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBox1.SelectedItem.Equals("10/08/2014-visit1"))
            {
                checkBox1.Checked = true;
                checkBox8.Checked = true;
                checkBox9.Checked = true;
                checkBox4.Checked = true;
                checkBox12.Checked = true;
                checkBox11.Checked = true;
                checkBox8.Checked = true;
            }
            else if (comboBox1.SelectedItem.Equals("11/08/2014-visit2"))
            {
                checkBox1.Checked = true;
                checkBox8.Checked = false;
                checkBox9.Checked = true;
                checkBox4.Checked = false;
                checkBox12.Checked = true;
                checkBox11.Checked = true;
                checkBox8.Checked = false;
            }
            else
            {
                checkBox1.Checked = true;
                checkBox8.Checked = false;
                checkBox9.Checked = true;
                checkBox4.Checked = false;
                checkBox12.Checked = true;
                checkBox11.Checked = false;
                checkBox8.Checked = false;
            }
        }
    }
}
